package com.xcq.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author CQ.Xi
 * @since 2022-10-20
 */
@Data
@TableName("cy_goods")
@ApiModel(value = "Goods对象", description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品名称")
    @TableField("goodsName")
    private String goodsName;

    @ApiModelProperty("分类ID")
    @TableField("cateId")
    private Integer cateId;

    @ApiModelProperty("商品适合推荐地区ID")
    @TableField("cityID")
    private Integer cityId;

    private Long price;

    @ApiModelProperty("商品原价")
    private Long original;

    @ApiModelProperty("商品标签")
    private String tags;

    @ApiModelProperty("商品内容")
    private String content;

    @ApiModelProperty("商品描述")
    private String summary;

    @ApiModelProperty("上架状态：1是上架0是没上架")
    @TableField("isSale")
    private Integer isSale;

    @TableField("createdAt")
    private LocalDateTime createdAt;

    @TableField("updatedAt")
    private LocalDateTime updatedAt;


}
